package com.black.app.service.store;

import com.black.app.domain.req.my.myshoppingcar.AppShoppingCarAddReq;
import com.black.app.domain.req.my.myshoppingcar.AppShoppingCarEditReq;
import com.black.app.domain.req.my.myshoppingcar.AppShoppingCarQueryReq;
import com.black.app.domain.resp.my.myshoppingcar.AppShoppingCarResp;
import com.black.app.domain.resp.my.myshoppingcar.UserShoppingCarResp;
import com.black.app.domain.store.AppStoreShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

/**
* @author admin
* @description 针对表【app_store_shopping_cart】的数据库操作Service
* @createDate 2024-10-31 11:15:37
*/
public interface AppStoreShoppingCartService extends IService<AppStoreShoppingCart> {
    //后台-购物车分页查询
    PageInfo<AppShoppingCarResp> paginationQuery(AppShoppingCarQueryReq req);
    //根据user_id获取用户购物车列表
    PageInfo<UserShoppingCarResp> getMyShoppingCarList(Integer userId);
    //购物车添加商品
    boolean add(AppShoppingCarAddReq req);
    //修改购物车商品信息
    boolean edit(AppShoppingCarEditReq req);
    //根据id删除购物车商品
    boolean deleteById(Integer[] ids);
}
